package day9zy.Maolaoshu;

public class Mao {
   private String name;
   private double tz;
   private int tl;

    public void setName(String name) {
        this.name = name;
    }

    public void setTz(double tz) {
        this.tz = tz;
    }

    public void setTl(int tl) {
        this.tl = tl;
    }

    public String getName() {
        return name;
    }

    public double getTz() {
        return tz;
    }

    public int getTl() {
        return tl+10;
    }

    public Mao(String name,int tz,int tl){
        this.name = name;
        this.tz = tz;
        this.tl = tl;
    }
    public void j(){
        System.out.println("名字："+name+"体重："+tz+"体力"+tl);
    }
    public void zhua(){
        System.out.println(getName()+"抓到了老鼠体力上涨到了"+getTl());
    }
}
